package com.wedimob.scrapper.network;

import java.io.IOException;

import org.jsoup.Connection.Response;

/**
 * Strategy to retreive content from an url with timeout.
 * 
 * @author melouadi
 * 
 */
public interface ConnectionStrategy {

	/**
	 * Perform network lookup to retreive Response.
	 * 
	 * @param aUrl
	 *            to retreive
	 * @param aTimeout
	 *            in ms
	 * @return Response
	 * @throws IOException
	 *             error
	 */
	Response get(final String aUrl, final int aTimeout) throws IOException;
}
